import os
BASE_DIRS = os.path.dirname(__file__)

# 参数
options = {
    # HTTP服务端口
    "default_port": 8090,
    # WebSocket服务最小端口
    "server_port": 8190,
    # WebScoket服务最大端口
    "server_max_port": 8550,
    "rust": True
}

# 解释器配置
interpreter = {
    "ip": "127.0.0.1",
    "port": 8550
}

# 数据库配置
mysql = {
    "host": "",
    "port": 3306,
    "user": "",
    "passwd": "",
    "dbName": ""
}

# 配置
# import base64
# import uuid
# base64.b64encode(uuid.uuid64().bytes + uuid.uuid64.bytes)
settings = {
    "static_path": os.path.join(BASE_DIRS, "app/dist"),
    "static_url_prefix": "/dist/",
    "template_path": os.path.join(BASE_DIRS, "templates"),
    "debug": True,
    "cookie_secret": "YGT7o0jKQ8KkJCMyqFIjjL6uQCc7AEZIik7d/OmyB80=",
    "xsrf_cookies": True,
    "login_url": "/login"
}
